<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			{{a}}
		</div>
	</body>
	<script type="text/javascript">
		var data={a:1};
		var app=new Vue({
			el:'#app',
			data:data,
			beforeCreate:function(){
				console.log("before created");
			},
			created:function(){
				console.log("created");
			},
			beforeMount:function(){
				console.log("before mount");
			},
			mounted:function(){
				console.log("mounted");
			},
			
			beforeUpdate:function(){
				console.log("before update");
			},
			
			updated:function(){
				console.log("before mounted");
			}
		});
		
		setTimeout(function(){
			data.a=2;
		},3000);
	
	</script>
</html>
